import Vue from 'vue';
import Vuex from 'vuex';
import user from './modules/user'
import getters from './getters'
Vue.use(Vuex);

const state = {
  doMainName: process.env.NODE_ENV === 'production' ? 'http://hz.tcy668.com/' : 'http://hz.tcy668.com/',
  refreshMyOrderStatus: false
};

const mutations = {
  refreshMyOrder(state, status) {
    state.refreshMyOrderStatus = status;
  }
};

const actions = {

};

export default new Vuex.Store({
  state,
  mutations,
  actions,
  getters,
  modules: {
    user
  }
})

